<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
         <?php
        //对数组赋值   定义数组
        //索引数组  下标是整型
        $a[]=90;
        $a[]=81;
        $a[5]=75;
        $a[]=62;
        //打印显示单个数组元素
        
        
        //打印整个数组的所有元素
        var_dump($a);
        print_r($a);
        //关联数组，下标是字符串型 
        $b["php"]=98;
        $b['java']=78;
        $b['web']=99;
        
        var_dump($b);
        
        $c=array("苹果","香蕉","柚子","芒果","梨");
      
      
        var_dump($c);
        
        $d=array('name'=>'张三','age'=>30,'sex'=>'男');
        unset($d);
        var_dump($d);
        
        for($i=0;$i<count($c);$i++)
        {
            echo "<h1>{$c[$i]}</h1>";
        }
        ?>
        <input type="submit" value="s" />
        <?php
        
        ?>
    </body>
</html>
